<template>
    <div>
        <el-table
        :data="tableData"
        style="width: 100%">
            <el-table-column
                prop="id"
                label="ID"
                width="80">
            </el-table-column>
            <el-table-column
                prop="shopname"
                label="ShopName"
                width="200">
            </el-table-column>
            <el-table-column
                prop="boss"
                label="Boss"
                width="180">
            </el-table-column>
            <el-table-column
                prop="address"
                label="Address"
                width="250">
            </el-table-column>
            <el-table-column
                prop="email"
                label="Email"
                width="300">
            </el-table-column>
            <el-table-column
                prop="status"
                label="Status"
                width="100">
            </el-table-column>
            <el-table-column
                prop="createdate"
                label="CreateDate"
                width="180">
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
export default {
    name: "shopupdate",
    data(){
        return{
            tableData: []
        }
    },
    mounted(){
        if(this.$cookies.get("shopupdate_second") != 'ok'){
            alert("无权限");
            this.$router.push("/adminindex")
        }else{
            this.$axios.get("/api/getAllShop").then(res=>{
                this.tableData = res.data
            });
        }
    }
}
</script>

<style scoped>

</style>